#!/usr/bin/python3
# coding=utf-8

# pip3 install pymongo
import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["graylog"]
users = mydb["users"]
user = users.find_one()
print(user)